
import { WeaTools } from 'ecCom';

//入库申请
export const getInstockInfo = params => {
	return WeaTools.callApi('/api/cpt/capitaltableedit/instock', 'GET', params);
}

//历史申请记录-高级搜索   //入库历史验收纪录 -- 高级搜索
export const getInstockCondition = params => {
	return WeaTools.callApi('/api/cpt/instock/condition', 'GET', params);
}

//历史申请记录-列表
export const getInstockHislist = params => {
	return WeaTools.callApi('/api/cpt/instock/instockhislist', 'GET', params);
}
//入库验收-提交
export const doInstock = params => {
	return WeaTools.callApi('/api/cpt/instock/doinstock', 'POST', params);
}

//入库申请 历史记录   == 回收
export const doReject = params => {
	return WeaTools.callApi('/api/cpt/instock/reject', 'GET', params);
}

//入库申请/验收 历史记录   == 删除
export const doDelete = params => {
	return WeaTools.callApi('/api/cpt/instock/doInstockBatchDel', 'GET', params);
}

/*****************************入库验收*******************************88 */
//入库验收-查询
export const getInstockchecklist = params => {
	return WeaTools.callApi('/api/cpt/instock/instockchecklist', 'GET', params);
}



//入库历史验收纪录
export const getInstockcheckhislist = params => {
	return WeaTools.callApi('/api/cpt/instock/instockcheckhislist', 'GET', params);
}

//入库验收 -- 批量验收查询明细
export const getInstockcheckInfo = params => {
	return WeaTools.callApi('/api/cpt/capitaltableedit/instockCheck', 'GET', params);
}

//入库验收 -- 作废
export const instockDelete = params => {
	return WeaTools.callApi('/api/cpt/instock/delete', 'GET', params);
}

//入库验收 -- 确认验收
export const docheckinstock = params => {
	return WeaTools.callApi('/api/cpt/instock/docheckinstock', 'POST', params);
}

//入库验收 - 校验编码
export const doInstockcheckCode = params => {
	return WeaTools.callApi('/api/cpt/instock/docheckinstockCheckCode', 'POST', params);
}

//低库存预警 - 获取数据
export const getRemindInfo = params => {
	return WeaTools.callApi('/api/cpt/instock/getRemindInfo', 'GET', params);
}